import { PropertyEditorInfo } from "maishu-jueying";
import React = require("react");
import { htmlProp } from "components/html/editor";

export function htmlRender(propEditors: PropertyEditorInfo[]): JSX.Element {
    let htmlEditor = propEditors.filter(o => o.prop == htmlProp)[0];
    console.assert(htmlEditor != null);

    return <div className="form-group">
        {htmlEditor.editor}
    </div>
}